define(['plugins/router', 'knockout'], function(router, ko) {
	var end=7;
	var modelArray = [{ route: ['', 'test1'],  moduleId: 'test1/index',     title: 'test1',         type: 'test',      nav: true }];
	for(var i=2;i<=end;i+=1){
		modelArray.push({ route: 'test'+i,        moduleId: 'test'+i+'/index',     title: 'test'+i,         type: 'test',      nav: true })
	}
	var childRouter = router.createChildRouter()
		.makeRelative({
			moduleId: 'app-main/tests',
			fromParent: true,
//			dynamicHash:':id'
		}).map(modelArray).buildNavigationModel();
	return {
		router: childRouter,
		testList: ko.computed(function() {
            return ko.utils.arrayFilter(childRouter.navigationModel(), function(route) {
                return route.type == 'test';
            });
        })
	}
})